import request from '@/utils/request.js'

export const requirementListService = (pid)=>{
    return request.get('/requirements/list?pid='+pid)
}

export const requirementAddService = (requirementData,pid)=>{
    return request.post('/requirements?pid='+pid,requirementData)
}

export const requirementDeleteService = (id, pid)=>{
    return request.delete('/requirements?id='+id +'&pid='+pid)
}


export const requirementUpdateService = (requirementData, pid)=>{
    return request.put('/requirements?pid='+pid,requirementData)
}